package com.ag.zlw.dao;

import java.util.List;

import com.ag.bean.TbUserState;
import com.ag.common.IDUtil;

/**
 * 用户状态
 * 
 * @author 钟龙伟
 * 
 */

public class TbUserStateDAO extends com.ag.dao.TbUserStateDAO {
	// 重写TbUserStateDAO中的findAll()和delete()方法

	public List<TbUserState> findAll() {
		return super.findByA(IDUtil.PRESERVE); // 查找所有"A"字段为"PRESERVE"的记录
	}

	public void delete(TbUserState persistentInstance) {
		persistentInstance.setA(IDUtil.DELETE); // 删除只是把该条记录的"A"字段置为"DELETE"
		super.attachDirty(persistentInstance);
	}
}
